<div class="modal-body">
    <div class="container-fluid form-horizontal ">
      <div class="panel panel-info form-horizontal">
		<div class="panel-heading ">
			添加车辆信息
		</div>
		<div class="panel-body">
			<div class="container-fluid">
				<!-- <div class="  wrapper-md ng-scope text-center" style="text-align: center">
                    <h1 class="m-n font-thin h3 ng-binding text-center">添加车辆</h1>
                </div> -->

                <div class="form-group row">
                    <label class="col-sm-2 control-label" style="font-size:20px">车辆信息</label>
                </div>

                <div class="form-group row">
                    <label class="col-sm-offset-1 col-sm-2 control-label">车牌号码</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="info.car_number" placeholder="车牌号码">
                    </div>
                    <label class="col-sm-2 control-label">车辆类型</label>
                    <div class="col-sm-3">
                        <ui-select ng-model="info.car_type" theme="bootstrap" >
                            <ui-select-match placeholder="车辆类型">
                                {{$select.selected.name}}
                            </ui-select-match>
                            <ui-select-choices repeat="item.value as item in ctarr | filter: $select.search">
                                <span ng-bind-html="item.name | highlight: $select.search"></span>
                            </ui-select-choices>
                        </ui-select>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-offset-1 col-sm-2 control-label">载重量（吨）</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="info.load_capacity" placeholder="载重量（吨）">
                    </div>
                    <label class="col-sm-2 control-label">车辆识别代码</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="info.vin" placeholder="车辆识别代码">
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-offset-1 col-sm-2 control-label">品牌类型</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="info.brand_model" placeholder="车辆识别代码">
                    </div>
                    <label class="col-sm-2 control-label">道路运输证有效期</label>
                    <div class="col-sm-3">
                        <!-- <input type="text" class="form-control" ng-model="info.business_license_validity" placeholder="道路运输证有效期"> -->
                         <div class="input-group" datetimepicker ng-model="vm.date" options="vm.options">
                            <input class="form-control"/>
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                        </div> 
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-offset-1 col-sm-2 control-label">发动机号码</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="info.engine_no" placeholder="发动机号码">
                    </div>
                    <label class="col-sm-2 control-label">机动车行驶证发证日期</label>
                    <div class="col-sm-3">
                        <!-- <input type="text" class="form-control" ng-model="info.issue_date" placeholder="机动车行驶证发证日期"> -->
                        <div class="input-group" datetimepicker ng-model="vm1.date" options="vm1.options">
                            <input class="form-control"/>
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                        </div> 
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-offset-1 col-sm-2 control-label">外廊尺寸</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="info.veranda_size" placeholder="外廊尺寸">
                    </div>
                    <label class="col-sm-2 control-label">道路运输证有效期</label>
                    <div class="col-sm-3">
                        <!-- <input type="text" class="form-control" ng-model="info.business_license_validity" placeholder="道路运输证有效期"> -->
                        <div class="input-group" datetimepicker ng-model="vm2.date" options="vm2.options">
                            <input class="form-control"/>
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                        </div> 
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-offset-1 col-sm-2 control-label">行驶证有效期（年）</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="info.license_date_year" placeholder="行驶证有效期（年）">
                    </div>
                    <label class="col-sm-2 control-label">行驶证有效期（月）</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="info.license_date_month" placeholder="行驶证有效期（月）">
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-offset-1 col-sm-2 control-label">行驶证有效期（数）</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="info.license_date_num" placeholder="行驶证有效期（数）">
                    </div>
                    <label class="col-sm-2 control-label">核定载人数</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="info.authorized_number" placeholder="核定载人数">
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-offset-1 col-sm-2 control-label">道路运输证经营许可证号</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="info.business_license_num" placeholder="道路运输证经营许可证号">
                    </div>
                    <label class="col-sm-2 control-label">道路运输证车辆类型</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="info.business_license_type" placeholder="道路运输证车辆类型">
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-offset-1 col-sm-2 control-label">道路运输证经营范围</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" ng-model="info.business_license_range" placeholder="道路运输证经营范围">
                    </div>
                    <label class="col-sm-2 control-label">道路运输证发证日期</label>
                    <div class="col-sm-3">
                        <!-- <input type="text" class="form-control" ng-model="info.business_license_date" placeholder="道路运输证发证日期"> -->
                        <div class="input-group" datetimepicker ng-model="vm3.date" options="vm3.options">
                            <input class="form-control"/>
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                        </div> 
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-offset-1 col-sm-2 control-label">选择驾驶员</label>
                    <div class="col-sm-3">
                        <ui-select multiple tagging tagging-label="false" ng-model="info.list " theme="bootstrap" ng-disabled="ctrl.disabled" style="height:34px" title="Choose a driver" ng-change="change(info.driver_name)">
                            <ui-select-match placeholder="选择驾驶员" style="margin-top:32px">{{$item.driver_name}}</ui-select-match>
                            <ui-select-choices repeat="driverlist as driverlist in driverarr | filter:$select.search">
                            {{driverlist.driver_name}}
                            </ui-select-choices>
                        </ui-select>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-offset-1 col-sm-2 control-label">车头照片</label>
                    <div class="col-sm-3">
                        <!-- <input type="text" class="form-control" ng-model="info.photo" placeholder="机动车行驶证发证日期"> -->
                        <button class="btn m-b-xs w-sm btn-info" ng-click="image()">
                            <i class="fa fa-file-image-o"></i> 添加图片
                        </button>  
                    </div>
                </div>
                <div class="col-sm-12" style="padding:10px" ng-repeat="item in array">           
                    <div class="col-sm-4" >         
                    </div> 
                    <div class="col-sm-4">
                        <img ng-src="{{item}}" width="100%" height="100"  ng-show="item.lastIndexOf('.pdf')=='-1'">
                        <a href= "{{item}}" target="_Blank" ng-show="item.lastIndexOf('.pdf')!='-1'">{{item}}</a>
                        <a type = 'button' class="btn-xs m-b-xs w-sm btn-danger" ng-click="del($index)">删除</a>	
                    </div> 
                </div>   

                <div class="col-sm-12" style="padding:20px">
                    <div class="col-sm-offset-4 col-sm-4">
                        <button class="btn btn-success btn-block" ng-click="save()">保存</button>
                    </div>
                </div>

            </div>
        </div>
        </div>
    </div>
</div>
            

